<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
  <head>
    <title><%= @html_title ? @html_title:'项目提成管理' %></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <%= javascript_include_tag :defaults %>
    <%= stylesheet_link_tag 'base','error_message' %>
    <%= dhtml_calendar_includes("blue", "zh") %>
    <%= yield(:css) %>
    <%= yield(:javascript)  %>
  </head>
  <script>
    function show_or_hide_stage(stage_id,link)
    {
      if($('stage_' + stage_id + '_work_item_types').style.display == '')
      {
        Effect.BlindUp('stage_' + stage_id + '_work_item_types');
        link.className = 'low base';
      }
      else
      {
        show_stage(stage_id,link);
      }
    }

    function show_stage(stage_id,link)
    {
        Effect.BlindDown('stage_' + stage_id + '_work_item_types');
        link.className = 'base';
    }
  </script>
  <body>
    <% if accessed_by? :browser_version => 'firefox' %>
    <div id="pump" style="display:none"></div>
    <div id="head" >
      <div id="logo">项目提成管理</div>
      <div id="nav_bar">
        <% if loggined? %>
        <%= link_to "项目", projects_url, :class => params[:controller] == 'projects' ? :h:''%>
        <%= link_to "设计师", designers_url, :class => params[:controller] == 'designers' ? :h:'' %>
        <% end %>
      </div>
    </div>
    <div id="body">
      <%= yield %>
    </div>
    <div id="bottom">
      Copyright © 2008-2009 by <%= link_to 'amon.lei', 'mailto:amon.lei@gmail.com', :class => :base %>
    </div>
    <% else %>
    <script>
      alert('为了获得更好的体验效果，请使用firefox-火狐浏览器：）');
      window.location.href = 'http://firefox.com.cn/download/';
     </script>
    <% end %>
  </body>
</html>
